package com.victor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.victor.dao.LogDao;
import com.victor.entity.log.Log;
import com.victor.service.LogService;

@Service
public class LogServiceImpl implements LogService {

	@Autowired
	private LogDao dao;

	// 查看操作日志
	@Override
	public List<Log> getAllLogs() {
		return dao.getAllLogs();
	}

	// 添加操作日志
	@Override
	public int addLog(Log log) {
		return dao.addLog(log);
	}
}
